<?php
$server = "localhost";
$uname = "root";
$umm = "root";
$db = "maxik";
$con = mysqli_connect($server, $uname, $umm, $db);
if ($con) {
    $id = $_GET['id'];
    $k_uqur = 'select * from admin  where id=' . $id;
    $ok_uqur = mysqli_query($con, $k_uqur);

    if ($ok_uqur && mysqli_num_rows($ok_uqur)) {
        $kur = mysqli_fetch_assoc($ok_uqur);
    }

} else {
    echo 'kaqrug' . mysqli_connect_error();
}
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    *{margin: 0;padding: 0 ; text-align: center;font-family: "ALKATIP Basma Tom"}
    .a{background-color: #dd4444; width: 100%;height: 50px;line-height: 50px;font-size: 30px;
        color: #fff;}
    .form{margin: 50px}
    .button{background-color: #dd4444;padding: 2px;font-size: 30px;margin: 30px; color:  #fff;}
    .ll{background-color: #dd4444; width: 100%;height: 50px;line-height: 50px;font-size: 30px}

</style>
<body>
<div class="a">
كىرىش بىتى
</div>
<form class="form" action="s_admin.php" method="post">0
    <input type="hidden" name="id" value="<?php echo $id ?? '0' ?>">
nami : <input type="text" name="name" placeholder="name" value="<?php echo $kur['isim']; ?>">
password : <input type="password" name="password" placeholder="password" value="<?php echo $kur['password']; ?>">
    <br>
   <button class="button" type="submit"> كىرىش</button>
    <br>
   <a  href="add_user.php" class="ll" > تىزىملىتىش</a>
</form>
</body>
</html>